
import { COMMUNIST_YOUTH_LEAGUE_SEAL_40 } from 'components/ImpressionLibrary/templates/communist-youth-league-seal-40'
import { OFFICIAL_SEAL_42 } from 'components/ImpressionLibrary/templates/official-seal-42'
import { OFFICIAL_SEAL_40 } from 'components/ImpressionLibrary/templates/official-seal-40'
import { OFFICIAL_SEAL_38 } from 'components/ImpressionLibrary/templates/official-seal-38'
import { SPECIAL_SEAL_42 } from 'components/ImpressionLibrary/templates/special-seal-42'
import { SPECIAL_SEAL_40 } from 'components/ImpressionLibrary/templates/special-seal-40'
import { SPECIAL_SEAL_38 } from 'components/ImpressionLibrary/templates/special-seal-38'
import { DEPARTMEN_SEAL_42 } from 'components/ImpressionLibrary/templates/departmen-seal-42'
import { DEPARTMEN_SEAL_40 } from 'components/ImpressionLibrary/templates/departmen-seal-40'
import { DEPARTMENT_SEAL_38 } from 'components/ImpressionLibrary/templates/departmen-seal-38'
import { PARTY_BRANCH_SEAL } from 'components/ImpressionLibrary/templates/party-branch-seal'
import { COMMUNIST_YOUTH_LEAGUE_SEAL_42 } from 'components/ImpressionLibrary/templates/communist-youth-league-seal-42'
import { TRADE_UNION_SEAL } from 'components/ImpressionLibrary/templates/trade-union-seal'
import { INDUSTRIAL_COMMERCIAL_ENTERPRISES_CONTRACTS_SEAL } from 'components/ImpressionLibrary/templates/industrial&commercial-enterprises-contracts-seal'
import { FOREIGN_ENTERPRISE_CHINESE_ENGLISH } from 'components/ImpressionLibrary/templates/foreign-enterprise-chinese&english'
import { FOREIGN_ENTERPRISE_CHINESE } from 'components/ImpressionLibrary/templates/foreign-enterprise-chinese'
import { INVOICE_SEAL } from 'components/ImpressionLibrary/templates/invoice-seal'
import { FINANCIAL_STAMP_22 } from 'components/ImpressionLibrary/templates/financial-stamp-22mm'
import { FINANCIAL_STAMP_25 } from 'components/ImpressionLibrary/templates/financial-stamp-25mm'

/*
* 企业标签栏内容
* */
export const E_TABBAR_DATA = [
	{
		id: 'WRITE_SIGN',
		name: '签名',
		icon: 'iconqianming',
		url: '/signature',
		type: 'WRITE_SIGN',
		select: false
	},
	{
		id: 'SEAL',
		name: '签章',
		icon: 'iconqianzhang',
		// url: '/seal',
		url: '/signature',
		type: 'SEAL_SIGN',
		select: false
	},
	{
		id: 'PAGING_SEAL',
		name: '骑缝章',
		icon: 'iconqifengzhang',
		// url: '/connectiveSeal',
		url: '/signature',
		type: 'MULTI_CHECK_MARK',
		select: false
	}
];

/*
* 个人标签栏内容
* */
export const P_TABBAR_DATA = [
	{
		id: 'WRITE_SIGN',
		name: '签名',
		icon: 'iconqianming',
		url: '/signature',
		type: 'WRITE_SIGN',
		select: false
	},

];

/*
* 请求头类型
* */
export const REQUEST_TYPE = {
	image: 'IMAGE_TYPE'
}
export const sealSize = [
	{
		label: '40x40',
		value: '40x40',
	},
	{
		label: '42x42',
		value: '42x42',
	},
	{
		label: '38x38',
		value: '38x38',
	},
	{
		label: '58x58',
		value: '58x58',
	},
	{
		label: '45x30',
		value: '45x30',
	},
]

export const sealSizeType = [
	{
		label: '公章：40x40',
		value: '40x40',
	},
	{
		label: '公章：42x42',
		value: '42x42',
	},
	{
		label: '专用章：38x38',
		value: '38x38',
	},
	{
		label: '专用章：58x58',
		value: '58x58',
	},
	{
		label: '外企章：45x30',
		value: '45x30',
	},
]

export const sealConfigs = [
	{ name: '公章', config: [OFFICIAL_SEAL_42, OFFICIAL_SEAL_40, OFFICIAL_SEAL_38], type: [{ key: 'code', title: '信用编码' }], size: [{ value: '42x42', label: '42x42' }, { value: '40x40', label: '40x40' }, { value: '38x38', label: '38x38' }] },
	// { name: '公章40', config: ,type:[{key:'code',title:'信用编码'}]},
	// { name: '公章38', config: ,type:[{key:'code',title:'信用编码'}]},
	{ name: '专用章', config: [SPECIAL_SEAL_42, SPECIAL_SEAL_40, SPECIAL_SEAL_38], type: [{ key: 'code', title: '信用编码' }, { key: 'lineText', title: '印章文本' }], size: [{ value: '42x42', label: '42x42' }, { value: '40x40', label: '40x40' }, { value: '38x38', label: '38x38' }] },
	// { name: '专用章40', config: SPECIAL_SEAL_40,type:[{key:'code',title:'信用编码'},{key:'lineText',title:'印章文本'}]},
	// { name: '专用章38', config:SPECIAL_SEAL_38 ,type:[{key:'code',title:'信用编码'},{key:'lineText',title:'印章文本'}]},
	{ name: '部门章', config: [DEPARTMEN_SEAL_42, DEPARTMEN_SEAL_40, DEPARTMENT_SEAL_38], type: [{ key: 'code', title: '信用编码' }, { key: 'lineText', title: '印章文本' }], size: [{ value: '42x42', label: '42x42' }, { value: '40x40', label: '40x40' }, { value: '38x38', label: '38x38' }] },
	// { name: '部门章', config: DEPARTMEN_SEAL_40 ,type:[{key:'code',title:'信用编码'},{key:'lineText',title:'印章文本'}]},
	// { name: '部门章', config: DEPARTMENT_SEAL_38 ,type:[{key:'code',title:'信用编码'},{key:'lineText',title:'印章文本'}]},
	{ name: '党章', config: [PARTY_BRANCH_SEAL], type: [], size: [{ value: '42x42', label: '42x42' }] },
	{ name: '团章', config: [COMMUNIST_YOUTH_LEAGUE_SEAL_42, COMMUNIST_YOUTH_LEAGUE_SEAL_40], type: [{ key: 'topLineText', title: '上横排文字' }, { key: 'bottomLineText', title: '下横排文字' }], size: [{ value: '42x42', label: '42x42' }, { value: '40x40', label: '40x40' }] },
	// { name: '团章40', config: COMMUNIST_YOUTH_LEAGUE_SEAL_40,type:[{key:'topLineText',title:'上横排文字'},{key:'bottomLineText',title:'下横排文字'}] },
	{ name: '工会章', config: [TRADE_UNION_SEAL], type: [], size: [{ value: '42x42', label: '42x42' }] },
	{ name: '企业合同专用章', config: [INDUSTRIAL_COMMERCIAL_ENTERPRISES_CONTRACTS_SEAL], type: [{ key: 'text1', title: '开户行' }, { key: 'text2', title: '银行账户' }, { key: 'text3', title: '电话' }, { key: 'text4', title: '地址' }], size: [{ value: '58x58', label: '58x58' }] },
	{ name: '外企章中英文', config: [FOREIGN_ENTERPRISE_CHINESE_ENGLISH], type: [{ key: 'enterpriseEnglishName', title: '企业英文名称' }, { key: 'lineText', title: '印章文本' }], size: [{ value: '30x45', label: '30x45' }] },
	{ name: '外企章中文', config: [FOREIGN_ENTERPRISE_CHINESE], type: [{ key: 'lineText', title: '印章文本' }], size: [{ value: '30x45', label: '30x45' }] },
	{ name: '发票专用章', config: [INVOICE_SEAL], type: [{ key: 'code', title: '信用编码' }, { key: 'lineText', title: '印章文本' }], size: [{ value: '30x40', label: '30x40' }] },
	{ name: '财务专用章', config: [FINANCIAL_STAMP_22], type: [], size: [{ value: '22x22', label: '22x22' }] },
	// { name: '财务专用章', config: FINANCIAL_STAMP_25,type:[] }
]


export const SERVICE_TYPE = {
	REGIST: 'REGIST',//用户注册
	LOGIN: 'LOGIN',//用户登录;
	ACTIVITY: 'ACTIVITY',//激活用户
	SIGN: 'SIGN',// 签署;
	RESET_PWD: "RESET_PWD",//- 重置密码;
	IDENTITY: 'IDENTITY',// - 实名认证;
	BIND_CONTACT: "BIND_CONTACT",//- 修改已绑定的联系方式;
	VERIFICATION_CODE_LOGIN: 'VERIFICATION_CODE_LOGIN',// - 验证码登录;
	CONFIRM_AUTH: 'CONFIRM_AUTH',//- 签署身份;
	RESET_SIGN_PWD: 'RESET_SIGN_PWD',// - 重置签署密码;
	SIGNING_OBJECT: 'SIGNING_OBJECT',//- 签约主体身份;
	UNBIND_WECHAT: 'UNBIND_WECHAT',//- 微信解绑;
	INVITE_MEMBERS_JOIN_ENTERPRISE: 'INVITE_MEMBERS_JOIN_ENTERPRISE',// - 邀请成员加入企业;
	SIGNATURE_ACCOUNT_LOGIN: 'SIGNATURE_ACCOUNT_LOGIN',// - 签约账号登录验证;
	SIGNATURE_FILE_ACCESS: 'SIGNATURE_FILE_ACCESS',// - 签约文件访问验证;
	VOICE_VERIFICATION_CODE_LOGIN: 'VOICE_VERIFICATION_CODE_LOGIN',//- 语音验证码登录;
	VOICE_RESET_PWD: 'VOICE_RESET_PWD',// - 语音重置密码",
}
export const WHITELIST_CODE = [
	401,
];

//支付宝认证模式
export const ALIPAY_MODE = {
	MULTIPLE_FACTOR: 'FACE',//多因子人脸认证
	MULTIFACTOR_SHORTCUT: 'SMART_FACE',//多因子快捷人脸认证
	FACE_AUTHENTICATION_SDK: 'FACE_SDK',//人脸认证SDK
	MULTIPLE_FACTOR_ID_PHOTO: 'CERT_PHOTO',// 多因子证件照片认证
	ID_PHOTO_AND_FACE: 'CERT_PHOTO_FACE',// 多因子证件照片和人脸认证
}

//认证成功跳转页面
export const AUTHENTICATION_SUCCESS = [
	{
		key: 'EUSR',//企业
		url: '/RealNameAuthenticationResult'
	},
	{
		key: 'PUSR',//个人
		url: '/AuthenticationSuccess'
	}
]

//认证失败跳转页面
export const AUTHENTICATION_FAIL = [
	{
		key: 'EUSR',//企业
		url: '/RealNameAuthenticationResult'
	},
	{
		key: 'PUSR',//个人
		url: '/AuthenticationFail'
	}
]
export const AUTHENTICATION_FAIL_CODE = {
	EUSR: 'EUSR',//企业
	PUSR: "PUSR",//个人
	EPUSR: 'EPUSR'//企业个人
}

export const AUTHENTICATION_REULST = {
	EUSR_SUCCESS: 'EUSRsuccess',
	PUSR_SUCCESS: "PUSRsuccess",
	PUSR_ERROR: 'PUSRerror',
	EUSR_ERROR: 'EUSRerror',
	EUSR_SUCCESS_C: 'EUSRsuccessIntendCertification',
	EUSR_SUCCESS_P: "EUSRsuccessrealNameAuthentication",
	EUSR_ERROR_P: 'EUSRerrorrealNameAuthentication',
	EUSR_ERROR_C: 'EUSRerrorIntendCertification',
	PUSR_SUCCESS_C: 'PUSRsuccessIntendCertification',
	PUSR_SUCCESS_P: "PUSRsuccessrealNameAuthentication",
	PUSR_ERROR_P: 'PUSRerrorrealNameAuthentication',
	PUSR_ERROR_C: 'PUSRerrorIntendCertification',
}
export const AUTHENTICATION_TYPE_CODE = {//认证类型INCOMPLETE - 未完善 PASSED - 认证通过  WAITING - 等待认证 DENY - 认证未通过  EXPIRED - 过期
	INCOMPLETE: 'INCOMPLETE',
	PASSED: 'PASSED',
	WAITING: 'WAITING',
	DENY: 'DENY',
	EXPIRED: 'EXPIRED'
}
export const AUTHENTICATION_TYPE_LIST = [{
	key: 'INCOMPLETE',
	value: '未完善'
}, {
	key: 'PASSED',
	value: '认证通过'
}, {
	key: 'WAITING',
	value: '等待认证'
}, {
	key: 'DENY',
	value: '认证未通过'
}, {
	key: 'EXPIRED',
	value: '过期'
}

]
export const ENTERPRISE_ACCOUNTAUTHENTICATION = {//企业认证状态
	INCOMPLETE: 'INCOMPLETE',//未完善状态需要进行实名认证
	PRIMARY_PASSED: 'PRIMARY_PASSED',//(1, "初级认证通过",""), 企业认证成功的状态
	WAITING: 'WAITING',// "等待认证",
	PRIMARY_DENY: "PRIMARY_DENY",//(3, "基本信息认证未通过",""), 企业认证失败的状态
	EXPIRED: 'EXPIRED',//(4, "过期",""),
	WAITING_SUM: 'WAITING_SUM',//(5,"等待打款",""),
	WAITING_SUM_CHECK: 'WAITING_SUM_CHECK',//(6, "已打款","等待用户汇款信息确认"),
	SENIOR_PASSED: 'SENIOR_PASSED',//(7, "高级认证通过","用户汇款信息确认成功"),
	SENIOR_DENY: 'SENIOR_DENY',//(8, "高级认证未通过","打款失败/打款验证失败"),
	SENIOR_NO_CERT: 'SENIOR_NO_CERT',//(9, "高级认证通过(无证书)","证书颁发失败"),
}

export const ENTERPRISE_STATUS = {
	PINCOMPLETE: 'PINCOMPLETE',  //个人未认证
	PPASSED: 'PPASSED',  //个人完成认证
	PDENY: 'PDENY',  //个人认证失败
	EINCOMPLETE: 'EINCOMPLETE',  //企业未认证
	EPASSED: 'EPASSED',  //企业认证成功
	EDENY: 'EDENY',  //企业认证失败
}

export const CERTIFICATION_TYPE = {
	REAL_NAME_AUTHENTICATION: "realNameAuthentication",//实名认证
	INTEND_CERTIFICATION: "IntendCertification",//意愿认证
}

export const CERTIFICATION_STATUS = {//认证结果
	SUCCESS: 'success',
	ERROR: 'error'
}
export const PERSONAL_TYPE = {//个人请求获取个人信息类型
	SUBMIT: 'submit',//提交
	CERTIFICATION: "certification"//意愿认证
}
export const ENTER_TYPE = {//页面进入方式
	EXTERNAL: 'External',//外部
	INTERIOR: "Interior"//内部
}

export const PROCESS_STATUS = {//账号类型_当前操作_操作结果
	INITIAL_VALUE: 0,
	//参数获取
	UNKOWN_INITIAL_SUCCESS: 110,//初始化成功
	UNKOWN_INITIAL_ERROR: 111,//初始化失败
	//企业账号企业认证
	EUSR_AUTHORIZED_SUCCESS: 200,//企业账号已认证
	EUSR_AUTHORIZED_ERROR: 201,//企业账号未认证
	EUSR_AUTHORIZING_SUCCESS: 210,//企业认证过程成功
	EUSR_AUTHORIZING_ERROR: 211,//企业认证过程失败
	//企业流程个人认证
	EPUSR_AUTHORIZED_SUCCESS: 400,//企业账号个人认证已认证
	EPUSR_AUTHORIZED_ERROR: 401,//企业账号个人认证未认证
	EPUSR_AUTHORIZING_SUCCESS: 410,//企业个人认证认证过程成功
	EPUSR_AUTHORIZING_ERROR: 411,//企业认个人认证证过程失败
	////个人流程
	PUSR_AUTHORIZED_SUCCESS: 300,//个人账号已认证
	PUSR_AUTHORIZED_ERROR: 301,//个人账号未认证
	PUSR_AUTHORIZING_SUCCESS: 310,//个人认证过程成功
	PUSR_AUTHORIZING_ERROR: 311,//个人认证过程失败
	//外部个人认证
	////个人流程
	EXPUSR_AUTHORIZED_SUCCESS: 500,//个人账号已认证
	EXPUSR_AUTHORIZED_ERROR: 501,//个人账号未认证
	EXPUSR_AUTHORIZING_SUCCESS: 510,//个人认证过程成功
	EXPUSR_AUTHORIZING_ERROR: 511,//个人认证过程失败
	//意愿
	UNKOWN_WISH_SUCCESS: 120,//意愿认证成功
	UNKOWN_WISH_ERROR: 121,//意愿认证失败
	//提交
	UNKOWN_SUBMIT_SUCCESS: 130,//提交成功
	UNKOWN_SUBMIT_ERROR: 131,//提交失败
	//支付宝请求方式
	UNKOWN_WISH_APPLY: 143,//支付宝请求方式意愿认证
	UNKOWN_PAUTHORIZING_APPLY: 153,//支付宝请求方式个人认证
	UNKOWN_EAUTHORIZING_APPLY: 163,//支付宝请求方式企业认证中的个人认证
	UNKOWN_EXTERNALPUSR_APPLY: 173,//支付宝请求方式企业认证中的个人认证
	//表单保存
	UNKOWN_FORMS_SUCCESS: 170,//表单保存成功
	UNKOWN_FORMS_ERROR: 171,//表单保存失败,
	//签署结果
	UNKOWN_SIGN_SUCCESS: 180,//签署成功
	UNKOWN_SIGN_ERROR: 181,//签署失败,

}
export const pusherChannelTag = 'WSID_ENTE_0000016f3d51e66800d861ab73a30001'

export const COUNT_DOWN = {
	RESULT_TIME: 3,//结果页的倒计时
}

//意愿认证方式
export const verificationMode = {
	SMSVERIFICATION: 'SMSVerification', //短信验证
	ALIPAYVERIFICATION: 'AlipayVerification'  //支付宝验证
}

export const USER_PERMISS_USESEAL = 'WSID_PVLG_0000016a94ff5986024244d4768a0001'

export const USER_PERMISS_ADDSEAL = 'WSID_PVLG_0000016ad30a4a4a024244d4768a0001'

export const locationAction = {
	PUSH: 'PUSH',
	POP: 'POP'
}